package com.whut.mall.service;

import com.whut.mall.exception.ExceptionMall;
import com.whut.mall.model.pojo.User;

/**
 * @author xh
 * @date 2022/3/16 10:50
 */

public interface UserService {

    User getUser();

    void register(String userName, String password) throws ExceptionMall;

    User login(String userName, String password) throws ExceptionMall;

    void updateInformation(User user) throws ExceptionMall;

    boolean checkAdminRole(User user);
}
